#include<iostream>
using namespace std;
int main()
{
	int imput,a,b,c;
	cin>>imput;
	a=imput/100;
	b=(imput-a*100)/10;
	c=imput-a*100-b*10;
	if(imput==a*a*a+b*b*b+c*c*c)
	{
		cout<<"yes";
	}
	else
	{
		cout<<"no";
	}
	return 0;
}
